//
//  AppDelegate.swift
//  微博01
//
//  Created by 牛威 on 15/12/5.
//  Copyright © 2015年 牛威. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?
    


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        
        //测试数据
        
//        print(UserAccountViewModel.sharedAccount.account)
        
        //设置导航栏的全局外观
        
        setupAppearence()
        
        //设置根控制器
        
        window = UIWindow(frame:UIScreen.mainScreen().bounds)
        
        window?.backgroundColor = UIColor.whiteColor()

        window?.rootViewController  = NWNewFeatureViewController()
        
        window?.makeKeyAndVisible()
        
        return true
    }
    
    //全局设置nav和tabbar的颜色的设置
    
    
    private func setupAppearence(){
       
        UINavigationBar.appearance().tintColor = WBAppearenceTintColor

        UITabBar.appearance().tintColor = WBAppearenceTintColor
        
    }
    
}

